<?php

//$_this =& $this;

/* @var $_this View */
/* @var $form FormHelper */
/* @var $editForm EditFormHelper */
/* @var $html HtmlHelper */
/* @var $ehtml EHtmlHelper */
/* @var $javascript JavascriptHelper */
/* @var $jqax JqaxHelper */
/* @var $filterBlock FilterBlock */

$exchange_user_flag = false;
foreach (Layout::o()->widget['menu']->getByTags(array('auth')) as $menuItem) {
    if (($menuItem->ident == 'exchange_user') && $menuItem->active) {
        $exchange_user_flag = true;
        break;
    }
}

?><?=$editForm->create('none', array('id' => 'none', 'url'=>('/login/')));?><?php

	?><?=$editForm->startSet();?><?php
		?><?=$editForm->text("username", __d('auth', 'username', true), array('vertical' => true, 'size'=>30));?><?php
		?><?=$editForm->field("password", __d('auth', 'password', true), $form->password('password', array('size'=>30)), array('vertical' => true));?><?php
	?><?=$editForm->endSet();?><?php

    ?><?=$editForm->cell($editForm->submit(__d('auth', 'enter', true), array('class'=>'enter')));?><?php

?><?=$editForm->end();?><?php

foreach (Layout::o()->widget['menu']->getByTags(array('auth')) as $menuItem) {
    if ($menuItem->ident == 'register') {
        ?><div class="t_m1 "><?php
            ?><?=$html->link($menuItem->title, $menuItem->url_with_params);?><?php
        ?></div><?php
    }
}

?>